package com.atguigu.gulimall.product;

import com.alibaba.cloud.seata.GlobalTransactionAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * 1. 整合MyBatis-Plus
 *      1.1 导入依赖，已经通过导入 gulimall-common 引入了 MyBatis-Plus
 *      1.2 配置
 *          1.2.1 导入 MySQL 驱动，已经通过导入 gulimall-common 引入了 MySQL 驱动
 *          1.2.2 配置 MyBatis-Plus
 *              1.2.2.1 @MapperScan 指明扫描 Mapper 接口所在的包
 *              1.2.2.2 配置 mapper.xml 文件位置
 *              1.2.2.3 配置所有表主键自增
 *
 */

@EnableRedisHttpSession
@EnableCaching
@EnableFeignClients(basePackages = "com.atguigu.gulimall.product.feign")
@SpringBootApplication(exclude = {GlobalTransactionAutoConfiguration.class})
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
